<template>
  <div class="big">
    <div>
      <!--导航栏-->
      <NavigationBar></NavigationBar>
      <!--内容-->
      <div>
        <div class="secon">系统管理&emsp;/&emsp;<b>新闻公告</b></div>
        <div class="cont">
          <div class="conta">
            <!--            -->
            <div class="list">
              <div class="lista">
                <!--                标题-->
                <div class="listaa">标题<el-input v-model="input" placeholder="请输入" class="inp"></el-input></div>
                <!--                封面-->
                <div  class="listaa upimg">封面
                  <el-upload class="upload-demo" action="https://jsonplaceholder.typicode.com/posts/" list-type="picture-card" :limit="1">
                    <i class="el-icon-plus"></i>
                  </el-upload>
                </div>
                <!--                简介-->
                <div class="listaa">简介<el-input type="textarea" :autosize="{ minRows: 2}" v-model="input" placeholder="请输入" class="inp"></el-input></div>
              </div>
              <!--            -->
              <div class="listb">
                <!--                详情介绍-->
                <div class="listba">内容<el-input type="textarea" :autosize="{ minRows: 3}" v-model="input" placeholder="请输入" class="inp"></el-input></div>
                <!--                内容图片-->
                <div  class="listba upimg">图片
                  <el-upload class="upload-demo" action="https://jsonplaceholder.typicode.com/posts/" list-type="picture-card">
                    <i class="el-icon-plus"></i>
                  </el-upload>
                </div>
              </div>
            </div>
            <!--            -->
            <div class="listc">
              <el-button type="warning">添加</el-button>
              <el-button type="danger" @click="journalism_exit">取消</el-button>
            </div>
            <!--            -->
          </div>
        </div>
      </div>

    </div>
  </div>
</template>

<script>
import NavigationBar from "../../../components/NavigationBar";

export default {
  // 组件封装
  components: {
    'NavigationBar': NavigationBar
  },
  data(){
    return{
      input: "",
      currentPage1: 5,
      options: [{
        value: '选项1',
        label: '黄金糕'
      }, {
        value: '选项2',
        label: '双皮奶'
      }, {
        value: '选项3',
        label: '蚵仔煎'
      }, {
        value: '选项4',
        label: '龙须面'
      }, {
        value: '选项5',
        label: '北京烤鸭'
      }],
      value: ''
    }
  },
  methods: {
    handleSelect(key, keyPath) {
      console.log(key, keyPath);
    },
    journalism_exit(){
      this.$router.push('/journalism')
    }
  }
}
</script>

<style scoped>
.big{
  background-color: #F7F8FA;
  height: 100%;
  width: 100%;
}

.secon{
  text-align: center;
  background-color: #ffffff;
  margin: 10px 20px;
  height: 40px;
  line-height: 40px;
}
.cont{
  background-color: #ffffff;
  margin: 10px 20px;
  height: 82.2vh;
}
.inp{
  width: 500px;
  padding-left: 20px;
  vertical-align:middle;
}
.lista{
  padding-bottom: 20px;
  padding-top: 30px;
}
.listb{
  padding-bottom: 20px;
  padding-top: 30px;
}
.listc{
  text-align: center;
  padding: 10px 30px;
}
.list{
  display: flex;
  justify-content: space-around;
}
.listba{
  padding-top: 50px;
}
.listaa{
  padding-top: 50px;
}
.upimg{
  display: flex;
}
.upload-demo{
  padding-left: 20px;
}






</style>
